Action hook 'install_plugins_{$tab}'

in WP Core File wp-admin/plugin-install.php at line 200

View Source

install_plugins_{$tab}

Action Hook
Description
Fires after the plugins list table in each tab of the Install Plugins screen. The dynamic portion of the hook name, `$tab`, allows for targeting individual tabs. Possible hook names include: - `install_plugins_beta` - `install_plugins_favorites` - `install_plugins_featured` - `install_plugins_plugin-information` - `install_plugins_popular` - `install_plugins_recommended` - `install_plugins_search` - `install_plugins_upload`

Hook Information

File Location wp-admin/plugin-install.php View on GitHub
Hook Type Action
Line Number 200

Hook Parameters

Type Name Description
int $paged The current page number of the plugins list table.

Usage Examples

Basic Usage
<?php
// Hook into install_plugins_{$tab}
add_action('install_plugins_{$tab}', 'my_custom_function', 10, 1);

function my_custom_function($paged) {
    // Your custom code here
}

Source Code Context

wp-admin/plugin-install.php:200 - How this hook is used in WordPress core
<?php
 195   *
 196   * @since 2.7.0
 197   *
 198   * @param int $paged The current page number of the plugins list table.
 199   */
 200  do_action( "install_plugins_{$tab}", $paged );
 201  ?>
 202  
 203  	<span class="spinner"></span>
 204  </div>
 205  

PHP Documentation

<?php
/**
 * Fires after the plugins list table in each tab of the Install Plugins screen.
 *
 * The dynamic portion of the hook name, `$tab`, allows for targeting
 * individual tabs.
 *
 * Possible hook names include:
 *
 *  - `install_plugins_beta`
 *  - `install_plugins_favorites`
 *  - `install_plugins_featured`
 *  - `install_plugins_plugin-information`
 *  - `install_plugins_popular`
 *  - `install_plugins_recommended`
 *  - `install_plugins_search`
 *  - `install_plugins_upload`
 *
 * @since 2.7.0
 *
 * @param int $paged The current page number of the plugins list table.
 */
Quick Info
  • Hook Type: Action
  • Parameters: 1
  • File: wp-admin/plugin-install.php
Related Hooks

Related hooks will be displayed here in future updates.